package com.zyg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyg.dao.ClaMapper;
import com.zyg.dao.StudentMapper;
import com.zyg.pojo.Cla;
import com.zyg.pojo.EchartsData;
import com.zyg.pojo.Student;
import com.zyg.service.ClaService;
import com.zyg.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("studentService")
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {
    @Autowired StudentMapper studentMapper;

    @Override
    public List<EchartsData> getMajorIndexData() {
        return studentMapper.getMajorIndexData();
    }

    @Override
    public List<EchartsData> getClaIndexData() {
        return studentMapper.getClaIndexData();
    }

    @Override
    public List<EchartsData> getHostelIndexData() {
        return studentMapper.getHostelIndexData();
    }
}
